<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1" />
<title>微分销</title>
<link rel="stylesheet" type="text/css" href="../css/base.css">
<link rel="stylesheet" type="text/css" href="../css/nctouch_common.css">
<link rel="stylesheet" type="text/css" href="../css/nctouch_store.css">
<link rel="stylesheet" type="text/css" href="../css/nctouch_products_list.css">
<script type="text/javascript">
var SiteUrl = "/shop";
var ApiUrl = "/mobile";
var WapSiteUrl = "/wap";
var pagesize = 10;
</script>
<script type="text/javascript" src="../js/zepto.min.js"></script> 
<script type="text/javascript" src="../js/config.js"></script> 
<script type="text/javascript" src="../js/template.js"></script> 
<script type="text/javascript" src="../js/swipe.js"></script> 
<script type="text/javascript" src="../js/common.js"></script> 
<script type="text/javascript" src="../js/simple-plugin.js"></script>
<script type="text/javascript" src="../js/zepto.waypoints.js"></script>
<script type="text/javascript" src="../js/ncscroll-load.js"></script>
<script type="text/javascript" src="../js/tmpl/distribute.js"></script>
<script type="text/javascript" src="../js/tmpl/footer.js"></script>
</head>
<body>
<header id="header" class="nctouch-store-header fixed-Width">
  <div class="header-wrap">
    <div class="header-l"><a href="javascript:history.go(-1)"><i class="back"></i></a></div>
    <div class="header-title">
      <h1>微分销</h1>
    </div>
    <div class="header-r">  
      <a id="header-nav" href="javascript:void(0);"><i class="more"></i><sup></sup></a> 
    </div>
  </div>
  <div class="nctouch-nav-layout">
    <div class="nctouch-nav-menu"> <span class="arrow"></span>
      <ul>
        <li><a href="../index.html"><i class="home"></i>首页</a></li>
        <li><a href="../tmpl/search.html"><i class="search"></i>搜索</a></li>
        <li><a href="../tmpl/cart_list.html"><i class="cart"></i>购物车<sup></sup></a></li>
        <li><a href="javascript:void(0);"><i class="message"></i>消息<sup></sup></a></li>
      </ul>
    </div>
  </div>
</header>
<div class="nctouch-main-layout fixed-Width mb25">
  <div id="store-wrapper" class="nctouch-store-con"> 
    <!-- banner -->
    <div class="nctouch-store-top" id="store_banner"></div>
    <!-- 全部宝贝 -->
    <div id="allgoods_con">
      <div class="goods-search-list-nav" style="position: initial;">
        <ul id="nav_ul">
          <li><a href="javascript:void(0);" class="current" id="sort_default">综合排序<i></i></a></li>
          <li><a href="javascript:void(0);" id="sort_salesnum">销量优先</a></li>
          <li><a href="javascript:void(0);" id="search_adv">筛选<i></i></a></li>
        </ul>
        <div class="browse-mode">
          <a href="javascript:void(0);" id="show_style">
            <span class="browse-list"></span>
          </a>
        </div>
      </div>
      <div id="sort_inner" class="goods-sort-inner hide" style="top: 8.45rem;">
        <span><a href="javascript:void(0);" class="cur"  onclick="get_list({'order_val':'0','order_key':'0'})">综合排序<i></i></a></span>
        <span><a href="javascript:void(0);" onclick="get_list({'order_val':'2','order_key':'2'})">价格从高到低<i></i></a></span>
        <span><a href="javascript:void(0);" onclick="get_list({'order_val':'1','order_key':'2'})">价格从低到高<i></i></a></span>
        <span><a href="javascript:void(0);" onclick="get_list({'order_val':'2','order_key':'5'})">人气排序<i></i></a></span>
      </div>
      <div class="list" nc_type="product_content">
        <ul class="goods-secrch-list" id="product_list"></ul>
      </div>
      <!--筛选部分-->
      <div class="nctouch-full-mask hide">
        <div class="nctouch-full-mask-bg"></div>
        <div class="nctouch-full-mask-block">
          <div class="header">
            <div class="header-wrap">
              <div class="header-l"> <a href="javascript:void(0);"><i class="back"></i></a></div>
              <div class="header-title">
                <h1>商品筛选</h1>
              </div>
              <div class="header-r"><a href="javascript:void(0);" id="reset" class="text">重置</a> </div>
            </div>
          </div>
          <div class="nctouch-main-layout secreen-layout" id="list-items-scroll">
            <dl>
              <dt>价格区间</dt>
              <dd>
                <span class="inp-balck"><input type="text" id="price_from" nctype="price" pattern="[0-9]*" class="inp" placeholder="最低价"/></span><span class="line"></span><span class="inp-balck"><input nctype="price" type="text" id="price_to" pattern="[0-9]*" class="inp" placeholder="最高价"/></span>
              </dd>
            </dl>
            <div class="bottom"> <a href="javascript:void(0);" class="btn-l" id="search_submit">筛选商品</a> </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="fix-block-r">
	<a href="javascript:void(0);" class="gotop-btn gotop hide" id="goTopBtn"><i></i></a>
</div>
<!-- banner tpl -->
<script type="text/html" id="distri_banner_tpl">
	<div class="store-top-bg"><span class="img" nc_type="store_banner_img"></span></div>
	<div class="store-top-mask"></div>
	<div class="store-avatar" style="bottom: .8rem"><img src="<%= member_info.member_avatar %>" /></div>
	<div class="store-name" style="top: 2rem;font-size: 1rem"><%= member_info.member_name %></div>
</script>
<!-- 商品列表 -->
<script type="text/html" id="goods_list_tpl">
  <% if(goods_list.length >0){%>
    <% for (var k in goods_list) { var v = goods_list[k];%>
      <li class="goods-item" goods_id="<%=v.goods_id;%>">
        <span class="goods-pic">
          <a href="product_detail.html?goods_id=<%=v.goods_id;%>&dis_id=<%v.distri_id%>">
            <img src="<%=v.goods_image_url;%>"/>
          </a>
        </span>
        <dl class="goods-info">
          <dt class="goods-name">
            <a href="product_detail.html?goods_id=<%=v.goods_id;%>&dis_id=<%v.distri_id%>">
              <h4><%=v.goods_name;%></h4><h6><%=v.goods_jingle;%></h6>
            </a>
          </dt>
          <dd class="goods-sale">
            <a href="product_detail.html?goods_id=<%=v.goods_id;%>&dis_id=<%v.distri_id%>">
              <span class="goods-price">￥<em><%=v.goods_price;%></em>
                <% if (v.sole_flag) {%>
                  <span class="phone-sale"><i></i>手机专享</span>
                <% } %>
              </span>
              <% if (v.is_virtual == '1') { %>
                <span class="sale-type">虚</span>
              <% } else { %>
                <% if (v.is_presell == '1') { %>
                <span class="sale-type">预</span>
                <% } %>
                <% if (v.is_fcode == '1') { %>
                <span class="sale-type">F</span>
                <% } %>
              <% } %>

              <% if(v.group_flag || v.xianshi_flag){ %>
                <span class="sale-type">降</span>
              <% } %>
              </a>
            </dd>
            <dd class="goods-assist">
              <a href="product_detail.html?goods_id=<%=v.goods_id;%>&dis_id=<%v.distri_id%>">
                <span class="goods-sold">销量&nbsp;<em><%=v.goods_salenum;%></em></span>
              </a>
              <div class="goods-store">
                <a href="javascript:void(0);" nc_type="goods_more_link" param_id="<%=v.goods_id;%>"><i></i></a>
                <div class="sotre-favorites-layout" id="goods_more_<%=v.goods_id;%>">
                  <div nc_type="goods_more_con" param_id="<%=v.goods_id;%>" class="sotre-favorites-bg"></div>
                  <div nc_type="goods_addfav" param_id="<%=v.goods_id;%>" class="add"><i></i><h5>加收藏</h5></div>
                  <div nc_type="goods_cancelfav" param_id="<%=v.goods_id;%>" class="add added"><i></i><h5>已收藏</h5></div>
                </div>
              </div>
            </dd>
          </dl>
      </li>
      <%}%>
      <li class="loading"><div class="spinner"><i></i></div>商品数据读取中...</li>
  <% }else { %>
    <div class="nctouch-norecord search">
      <div class="norecord-ico"><i></i></div>
        <dl>
          <dt>没有找到任何相关信息</dt>
          <dd>搜索其它商品名称或筛选项...</dd>
        </dl>
        <a href="javascript:void(0);" onclick="get_list({'order_val':'<%=order%>','order_key':'<%=key%>'},true)" class="btn">查看全部商品</a>
    </div>
  <% } %>
</script>

</body>
</html>